/**
  * @description: 兑换状态（成功/失败）
*/
<template>
  <div class="pages">
    <div class="state-icon">
      <div class="state-div">
        <div v-if="state == '0'">
          <div class="flex-c">
            <van-icon name="clear" size="48" color="rgb(239 102 83)" />
          </div>
          <div class="text">兑换失败</div>
        </div>
        <div v-if="state == '1'">
          <div class="flex-c">
            <van-icon name="checked" size="48" color="rgb(81 175 177)" />
          </div>
          <div class="text">兑换成功</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "exchangeState",
  props: {
    state: String,
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>
<style scoped lang="less">
.pages {
  margin-top: 12px;
  .state-icon {
    width: 100%;
    height: 126px;
    background: #fff;
    border-radius: 10px;
    .state-div {
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      .flex-c {
        display: flex;
        justify-content: center;
      }
      .text {
        margin-top: 8px;
        font-size: 16px;
        font-weight: 700;
        color: #000000;
      }
    }
  }
}
</style>
